package com.livestocksolutions;

import java.util.Date;

/* -- Version History --
 *  1.0 : 22 July 2012 - Initial version.
 */

/**
 * This class stores a monetary purchasing transaction that have occurred in relation to Bovines
 * @author Adam Parr
 * @version 1.0
 * 
 * @.modified 22 July 2012
 */
public class Purchase extends Transaction {
	/**
	 * Creates a new Purchase
	 * @param transactionID A unique number to identify this Purchase
	 * @param amount the amount this purchase
	 * @param date the date of this purchase
	 */
	public Purchase(int transactionID, double amount, Date date) {
		// As this is a cost (Expenditure), the flow of this money is to an external source so should be bellow 0, if not invert amount
		super(transactionID, (amount<0?amount:amount*-1), date);
	}
}
